export default class test_collider extends Laya.Script {
    
    constructor() { super(); }
    
    onEnable()
    {
        let ani=new Laya.Animation()
        ani.loadAtlas("player_skin/1.atlas")
        this.owner.addChild(ani)
        ani.interval=100
        ani.play(0,true)
    }


    onTriggerEnter(other:any,self:any,contact:any):void
    {
        if(other.label=="playAgain")
        {
            console.log("+++++++++++hit+++++++++")
        }

        console.log("--------other--------")
        console.log(other)
        console.log("---------self--------")
        console.log(self)
        console.log("-------contact-------")
        console.log(contact)
    }

    onDisable(): void {
    }
}